package service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import dao.TeacherDao;
import pojo.Teacher;
import service.TeacherManager;

@Service
public class TeacherManagerImpl implements TeacherManager {

	@Autowired
	private TeacherDao teacherDao;

	@Transactional
	@Override
	public Teacher addInfo(Teacher info) {
		// TODO Auto-generated method stub
		return null;
	}

	@Transactional
	@Override
	public void addInfoList(List<Teacher> infoList) {

		teacherDao.addInfoList(infoList);

	}

	@Transactional
	@Override
	public Teacher getResult(Teacher param) {
		// TODO Auto-generated method stub
		return null;
	}

	@Transactional
	@Override
	public List<Teacher> getResults(String like) {
		
		return teacherDao.getResults(like);
	}

	@Transactional
	@Override
	public boolean updateInfo(Teacher info) {
		// TODO Auto-generated method stub
		return false;
	}

	@Transactional
	@Override
	public boolean deleteInfo(Teacher info) {
		// TODO Auto-generated method stub
		return false;
	}

}
